<!DOCTYPE html>
<html lang="en" th:fragment="header(title,keywords)" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <meta content="IE=edge, chrome=1" http-equiv="X-UA-Compatible"/>
    <meta content="webkit" name="renderer"/>
    <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
          name="viewport"/>
    <meta content="no-transform" http-equiv="Cache-Control"/>
    <meta content="no-siteapp" http-equiv="Cache-Control"/>
    <meta name="keywords" th:content="${keywords ?: commons.siteOption('site_keywords')}"/>
    <meta name="description" th:content="${description ?:commons.siteOption('site_description')}"/>
    <link rel="shortcut icon" th:href="@{/static/user/img/favicon.png}"/>
    <link rel="apple-touch-icon" th:href="@{/static/user/img/apple-touch-icon.png}"/>
    <title>
        <th:block th:text="${title ?: '首页'}+' - '+${commons.siteOption('site_title','My Blog')}"></th:block>
    </title>
    <link rel="stylesheet" th:href="@{/static/user/css/style.min.css}"/>
    <link rel="stylesheet" th:href="@{/static/admin/plugins/editormd/css/editormd.min.css}"/>

    <script th:src="@{/static/admin/js/jquery-3.4.1.min.js}"></script>

    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body gtools_scp_screen_capture_injected="true" th:class="${is_post}?'':'bg-grey'">
<!--[if lt IE 8]>
<div class="browsehappy" role="dialog">
    当前网页 <strong>不支持</strong> 你正在使用的浏览器. 为了正常的访问, 请 <a href="http://browsehappy.com/" target="_blank">升级你的浏览器</a>。
</div>
<![endif]-->
<header class="header bg-white" id="header">
    <div class="navbar-container">
        <a class="navbar-logo" th:href="${commons.siteUrl('/')}">
            <span style="font-size: 36px; color: #2f353f; line-height: 32px;">同创知识库</span>
        </a>
        <div class="navbar-menu">
            <a th:href="${commons.siteUrl('/')}">首页</a>
            <a th:href="${commons.siteUrl('/archives')}">归档</a>
        </div>
        <div class="navbar-search" onclick="">
            <span class="icon-search"></span>
            <form onsubmit="return false;" role="search">
                <span class="search-box">
                    <input autocomplete="off" class="input" id="search-inp" maxlength="30" placeholder="搜索..."
                           type="text"/>
                </span>
            </form>
        </div>
        <div class="navbar-mobile-menu" onclick="">
            <span class="icon-menu cross"><span class="middle"></span></span>
            <ul>
                <li><a th:href="${commons.siteUrl('/archives')}">归档</a></li>
                <li><a th:href="${commons.siteUrl('/about')}">关于</a></li>
            </ul>
        </div>
    </div>
</header>
</body>
</html>